package com.zhisuo.apicenter.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ZhiSuoUserSignRecordRowMapper implements RowMapper<ZhiSuoUserSignRecord> {

    @Override
    public ZhiSuoUserSignRecord mapRow(ResultSet rs, int rowNum) throws SQLException {
        ZhiSuoUserSignRecord sign = new ZhiSuoUserSignRecord();
        sign.setId(rs.getInt("id"));
        sign.setUserid(rs.getInt("userid"));
        sign.setDaydate(rs.getString("daydate"));

        return sign;
    }

}
